﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinCustomsService.Model
{

    /// <summary>
    /// 175上传数据实体
    /// </summary>
    public class CustomsPushPayInfo
    {
        /// <summary>
        /// 海关请求会话Id
        /// </summary>
        public string sessionID { get; set; }

        /// <summary>
        /// 返回时的系统时间
        /// </summary>
        public string serviceTime { get; set; }

        /// <summary>
        /// 证书编号
        /// </summary>
        public string certNo { get; set; }

        /// <summary>
        /// 支付原始数据表头
        /// </summary>
        public PayExchangeInfoHeadInfo payExchangeInfoHead { get; set; }

        /// <summary>
        /// 支付原始数据表体
        /// </summary>
        public List<PayExchangeInfo> payExchangeInfoLists { get; set; }

        /// <summary>
        /// 签名结果值
        /// </summary>
        public string signValue { get; set; }
    }

    /// <summary>
    /// 支付原始数据表头
    /// </summary>
    public class PayExchangeInfoHeadInfo
    {
        /// <summary>
        /// 系统唯一序号
        /// </summary>
        public string guid { get; set; }

        /// <summary>
        /// initalRequest
        /// </summary>
        public string initalRequest { get; set; }

        /// <summary>
        /// 原始响应
        /// </summary>
        public string initalResponse { get; set; }

        /// <summary>
        /// 电商平台代码
        /// </summary>
        public string ebpCode { get; set; }

        /// <summary>
        /// 支付企业代码
        /// </summary>
        public string payCode { get; set; }

        /// <summary>
        /// 交易流水号
        /// </summary>
        public string payTransactionId { get; set; }

        /// <summary>
        /// 交易金额 实际交易金额
        /// </summary>
        public decimal totalAmount { get; set; }

        /// <summary>
        /// 币制 实际交易币制（海关编码）
        /// </summary>
        public string currency { get; set; }

        /// <summary>
        /// 验核机构 1-银联 2-网联 3-其他
        /// </summary>
        public string verDept { get; set; }

        /// <summary> 
        /// 支付类型 用户支付的类型。1-APP 2-PC 3-扫码 4-其他
        /// </summary>
        public string payType { get; set; }

        /// <summary>
        /// 交易成功时间
        /// </summary>
        public string tradingTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string note { get; set; }
    }

    /// <summary>
    /// 支付原始数据表体
    /// </summary>
    public class PayExchangeInfo
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string orderNo { get; set; }

        /// <summary>
        /// 商品信息
        /// </summary>
        public List<GoodsInfo> goodsInfo { get; set; }

        /// <summary>
        /// 收款账号
        /// </summary>
        public string recpAccount { get; set; }
        /// <summary>
        /// 收款企业代码
        /// </summary>
        public string recpCode { get; set; }

        /// <summary>
        /// 收款企业名称
        /// </summary>
        public string recpName { get; set; }
    }

    /// <summary>
    /// 商品信息
    /// </summary>
    public class GoodsInfo
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string gname { get; set; }

        /// <summary>
        /// 商品链接
        /// </summary>
        public string itemLink { get; set; }
    }


}
